/* 导航栏样式 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f5f5f5;
}

/* 轮播图容器 */
.carousel-container {
  width: 100%;
  height: 300px;
  background-color: #f8f8f8;
}

/* 商品信息容器 */
.info-container {
  padding: 16px;
  background-color: #fff;
}

/* 商品标题 */
.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* 价格信息 */
.price-container {
  margin-bottom: 16px;
}

.current-price {
  font-size: 24px;
  color: #ff4d4f;
  font-weight: bold;
}

.original-price {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
  margin-left: 8px;
}

.discount {
  font-size: 14px;
  color: #fff;
  background-color: #ff4d4f;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* 标签容器 */
.tags-container {
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: #ff4d4f;
  border: 1px solid #ff4d4f;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
}

/* 配送信息 */
.delivery-info {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}

/* SKU选择区域 */
.sku-section {
  margin-bottom: 16px;
}

.sku-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sku-option {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.sku-option.selected {
  border-color: #ff4d4f;
  color: #ff4d4f;
  background-color: rgba(255, 77, 79, 0.1);
}

/* 数量选择 */
.quantity-section {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.quantity-title {
  font-size: 16px;
  font-weight: bold;
  margin-right: 16px;
  width: 70px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  cursor: pointer;
}

.quantity-input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  outline: none;
}

/* 加入购物车按钮 */
.add-to-cart-btn {
  width: 100%;
  height: 48px;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

.add-to-cart-btn:active {
  background-color: #ff7875;
}

/* 商品详情和评价标签页 */
.tabs {
  display: flex;
  border-bottom: 1px solid #f5f5f5;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.tab.active {
  color: #ff4d4f;
  border-bottom: 2px solid #ff4d4f;
}

/* 商品参数 */
.specs-container {
  padding: 16px;
  background-color: #fff;
  margin-top: 10px;
}

.spec-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.spec-name {
  width: 80px;
  color: #888;
}

.spec-value {
  flex: 1;
}

/* 商品详情内容 */
.details-content {
  padding: 16px;
  background-color: #fff;
}

/* 评价列表 */
.comments-container {
  padding: 16px;
  background-color: #fff;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comment-user {
  font-weight: bold;
  margin-bottom: 8px;
}

.comment-rating {
  color: #ffb400;
  margin-bottom: 8px;
}

.comment-time {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}